<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Notifications\Notifiable;
use Watson\Validating\ValidatingTrait;

class StudentExam extends Model
{
    use  Notifiable;
    use ValidatingTrait;
    use SoftDeletes;
    protected $table = 'student_exams';
    //
    protected $fillable = [
        's_id', 'e_id', 'is_pass','orders','code','credit','time','e_jd_codes',
    ];
    protected $rules = [
//        'c_name' => 'required|max:20',
    ];


    protected $validationMessages = [
//        'c_name.required' => '课程名称必填',
//        'c_name.max' => '课程名称长度不得超过20个字符',
//        'c_name.unique' => '该课程已经被注册过了'
    ];
}
